﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace xxx.Candidates.System.Model.View
{
    public class UserSessionVM
    {

        /// <summary>
        /// 描述 : 用户账号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "用户账号")]
        public string UserID { get; set; }

        /// <summary>
        /// 描述 : 用户名称 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "用户名称")]
        public string UserName { get; set; }

        /// <summary>
        /// 描述 : 用户昵称 
        /// 空值 : True
        /// 默认 : 
        /// </summary>
        [Display(Name = "用户昵称")]
        public string NickName { get; set; }

        /// <summary>
        /// 描述 : 邮箱 
        /// 空值 : True
        /// 默认 : 
        /// </summary>
        [Display(Name = "邮箱")]
        public string Email { get; set; }

        /// <summary>
        /// 描述 : 性别 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "性别")]
        public string Sex { get; set; }

        /// <summary>
        /// 描述 : 超级管理员   
        /// 空值 : False    
        /// 默认 :   
        /// </summary>
        [Display(Name = "超级管理员")]
        public bool Administrator { get; set; } = false;

        /// <summary>
        /// 描述 : 系统权限   
        /// 空值 : False    
        /// 默认 :   
        /// </summary>
        [Display(Name = "系统权限")]
        public List<string> UserPower { get; set; }

        /// <summary>
        /// 描述 : 持续时间   
        /// 空值 : False    
        /// 默认 :   
        /// </summary>
        [Display(Name = "持续时间")]
        public int KeepHours { get; set; }

        /// <summary>
        /// 描述 : 创建时间 
        /// 空值 : True
        /// 默认 : 
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 描述 : 备注 
        /// 空值 : True
        /// 默认 : 
        /// </summary>
        [Display(Name = "备注")]
        public string Remark { get; set; }
    }
}
